\section{Evaluation}

We implemented our approach using the \textbf{.NET} platform. This allowed us to
use an implementation of Google's AJAX Search API that is available at
\cite{GoogleSearchAPI}. It also allowed us to use the readily available API for
writing to a MS Access database, which we used for saving the training data for
the naive bayes classifier implementaiton we did. 

For our experiment, we decided to apply our approach to study the use of colors
in web pages for political parties in the United States of America. This choice
of experimenting on political web pages fits well into the binary classification
using a naive bayes model.  It is well known fact that there are two major
political parties involved in the political scene in the United States of
America. This fit in naturally in terms of classification by using a naive bayes
model. Webpages were either affliated with one political party or another, and
accordingly had the appropriate political party's color as the basis of the
color scheme used. 

For political websites, our data confirmed our intuition that the color schemes
used for websites affiliated with either political party were corresponding
to the political party's representative color; blue for web pages affliated to
the democratic party, red for web pages affliated to the republican party.
If you see the graph, the number of colors is high and thus the probability 
of occurrence of each color is low.
This is because every web page designer tweaks with color 
specification in web pages. There is rarely a repetition of the same color in
two web pages, even if they look similar to human eye. To model this behavior of
colors that are close enough in their RGB (reg, green, blue) values we decided
to normalize the data and thus get a better indication of frequency of use of
specific colors.


The following chart depicts the results that we have found for keyword "Democratic party". On the horizontal axis
are the color schemes in the format "Background - Font".  The vertical axis are the percentages of which the 
the colors schemes were retrieved when doing a search over 100 websites.

The results that we obtained for this keyword are interesting.  It does show that
the most likely schemes (excluding the all blank, all black, or all white) do
contain a shade of blue.  The aforementioned blank, black, or white are to be
expected in this age of developers using more sophisticated methods of adding
style to a website.  We believe that this data proves that our tool could be very
useful if applied to various other aspects of web design, if not just color.
\begin{figure*}
  \centering
  \includegraphics[scale=0.75]{chart}
  \caption{Color scheme frequency for democratic party websites}
\end{figure*}

Based on our experiments, we are able to suggest to future web page designers on
using this data in two ways. First it allows web page designers to check if they
are using specific values for attributes of webpages they design for a given
class of webpages. In the case of politically affliated web pages, it would be
prudent of a web page designer to use the political party's corresponding color
as the basis of the color scheme for his new web page. This would mean using the
color red as the basis for a web page affliated to the democratic party, and
the color blue as the basis for a web page affliated to the replican party.
